<?php
namespace Admin\Model;
use Think\Model;
class ShopModel extends Model 
{
    public $tableName = 'shop';
	/*获取所有店铺*/
    public function index()
    {
        $shopModel    = M($this->tableName);
        $res          = $shopModel->order('shop_points desc')->select();
        
        return $res;
    }

}